home *** CD-ROM | disk | FTP | other *** search
- @.TH time_set 1 local
- @.SH NAME
- time_set \- set local system time to time server host system time
- @.SH SYNOPSIS
- @.B time_set <hostname>
- @.SH DESCRIPTION
- @.I Time_set
- communicates with an Internet time server host using BSD
- Internet Stream Sockets. It obtains the current system time
- of the server's system clock time as a long int in units of
- seconds since the Epoch (end of 1969). Normally the time
- server is a system that sychronizes to Master Clock time.
- @.PP
- @.I time_set
- is designed to be used with
- @.I timesrv,
- the host time server's program spawned by inetd. Before
- setting your system clock with
- @.I time_set
- you should kill /etc/cron, and you should restart it after
- setting local system time. The shell script
- @.I TIME_SET
- automates this process and can be safely run from a cronfile.
- @.PP
- @.I time_set
- requires the following entry in
- @.I /etc/services:
- @.PP
- timesrv 22375/tcp
- @.PP
- and the following entry in
- @.I /etc/inetd.conf:
- @.PP
- timesrv stream tcp nowait root /usr/local/bin/timesrv timesrv
- @.PP
- Inetd must be restarted with the command:
- @.I /etc/inetd -c
- @.PP
- @.SH EXAMPLE
- @.nf
- @.RS 5
- # synchronize your system clock with time server "tycho"
- time_set tycho
- @.RE
- @.fi
-
- @.SH AUTHOR
- @.PP
- @.I time_set
- written by Rich Schmidt, US Naval Observatory, 1992.
-
- @.SH "SEE ALSO"
- timesrv(1), time_set(1), time(2), stime(2).
-